import request from '@/config/axios'
/**
 * 分页查询盘点单
 */
export const pageQuery = (params) => {
  return request.get({ url: '/material/inventory/page-query', params })
}

/**
 * 新增盘点单
 */
export const create = (data) => {
  return request.post({ url: '/material/inventory/create', data })
}

/**
 * 更新盘点单
 */
export const update = (data) => {
  return request.put({ url: '/material/inventory/update', data })
}

/**
 * 获取单个盘点单
 */
export const singleGet = (id) => {
  return request.get({ url: '/material/inventory/single-get?id=' + id })
}

/**
 * 更新
 */
export const updateStatus = (data) => {
  return request.put({ url: '/material/inventory/update-status', data })
}
